const mongoose = require('mongoose')

let commentSchema = new mongoose.Schema({
    cid:{
        type:String,
        required:true,
        unique:true
    },
    user_id:{
        type:String,
        required:true,
    },
    comment_content:{
        type:String,
        required:true
    },
    create_time:{
        type:String,
        require:true,
    },
    belong:{
        type:String,
        required:true
    }
})

module.exports = mongoose.model('comment',commentSchema,'comment')